{% extends 'template.html' %}
{% block content %}
    <div class="container">
        <form method="post" enctype="multipart/form-data"><!--enctype="multipart/form-data上传文件。否则只能上传文件名-->
            {% csrf_token %}
            <input type="text" name="username">
            <input type="file" name="avator">
            <input type="submit" value="提交">
        </form>
    </div>
{% endblock %}
